package app.caretrack.teststruts;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

public class TestDispatchAction extends DispatchAction {

    public ActionForward enterName(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        return mapping.findForward("name");

    }

    public ActionForward enterAddress(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        return mapping.findForward("address");
    }

    /**
     * public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
     * HttpServletResponse response) throws Exception { System.out.println("TestDispatchAction.execute"); if
     * (isCancelled(request)) { return mapping.findForward("falure"); } return mapping.findForward("success"); }
     **/
}
